/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditFunction.java
 *
 * Created on 14 ม.ค. 2553, 14:56:43
 */

package Inventory;

/**
 *
 * @author Administrator
 */
public class PnlEditFunction extends javax.swing.JPanel {

    /** Creates new form PnlEditFunction */
    public PnlEditFunction() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadFun = new javax.swing.JPanel();
        lblHeadEditFun = new javax.swing.JLabel();
        btnFunEditSave = new javax.swing.JButton();
        btnFunEditCancel = new javax.swing.JButton();
        btnFunEditDel = new javax.swing.JButton();
        btnFunPrint = new javax.swing.JButton();
        pnlEditFun = new javax.swing.JPanel();
        lblFuCode = new javax.swing.JLabel();
        txtFuCode = new javax.swing.JTextField();
        lblFuDepart = new javax.swing.JLabel();
        txtFuDepart = new javax.swing.JTextField();
        lblFuName = new javax.swing.JLabel();
        txtFuName = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        txbFuComment = new javax.swing.JTextArea();
        lblFuComment = new javax.swing.JLabel();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadFun.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadFun.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadFun.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadEditFun.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadEditFun.setText("หน้าที่พนักงาน");

        btnFunEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnFunEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnFunEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnFunPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnFunPrint.setMaximumSize(new java.awt.Dimension(40, 40));
        btnFunPrint.setMinimumSize(new java.awt.Dimension(40, 40));
        btnFunPrint.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlHeadFunLayout = new javax.swing.GroupLayout(pnlHeadFun);
        pnlHeadFun.setLayout(pnlHeadFunLayout);
        pnlHeadFunLayout.setHorizontalGroup(
            pnlHeadFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadFunLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadEditFun)
                    .addGroup(pnlHeadFunLayout.createSequentialGroup()
                        .addGap(0, 0, 0)
                        .addComponent(btnFunEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnFunPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(490, Short.MAX_VALUE))
        );
        pnlHeadFunLayout.setVerticalGroup(
            pnlHeadFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadFunLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadEditFun)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlHeadFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(btnFunPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnFunEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnFunEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnFunEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(4, 4, 4))
        );

        add(pnlHeadFun, java.awt.BorderLayout.PAGE_START);

        lblFuCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFuCode.setText("รหัสหน้าที่ :");

        txtFuCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblFuDepart.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFuDepart.setText("แผนก :");

        txtFuDepart.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblFuName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFuName.setText("หน้าที่ :");

        txtFuName.setFont(new java.awt.Font("Tahoma", 0, 12));

        txbFuComment.setColumns(17);
        txbFuComment.setFont(new java.awt.Font("Tahoma", 0, 12));
        txbFuComment.setRows(2);
        txbFuComment.setTabSize(5);
        jScrollPane2.setViewportView(txbFuComment);

        lblFuComment.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblFuComment.setText("หมายเหตุ :");

        javax.swing.GroupLayout pnlEditFunLayout = new javax.swing.GroupLayout(pnlEditFun);
        pnlEditFun.setLayout(pnlEditFunLayout);
        pnlEditFunLayout.setHorizontalGroup(
            pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditFunLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblFuComment, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblFuDepart, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblFuName, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblFuCode, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGroup(pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlEditFunLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlEditFunLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtFuDepart, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtFuName, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtFuCode, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(437, 437, 437))
        );
        pnlEditFunLayout.setVerticalGroup(
            pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlEditFunLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(txtFuCode, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblFuCode, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(txtFuName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblFuName))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtFuDepart, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblFuDepart))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlEditFunLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblFuComment)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(242, Short.MAX_VALUE))
        );

        add(pnlEditFun, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnFunEditCancel;
    private javax.swing.JButton btnFunEditDel;
    private javax.swing.JButton btnFunEditSave;
    private javax.swing.JButton btnFunPrint;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblFuCode;
    private javax.swing.JLabel lblFuComment;
    private javax.swing.JLabel lblFuDepart;
    private javax.swing.JLabel lblFuName;
    private javax.swing.JLabel lblHeadEditFun;
    private javax.swing.JPanel pnlEditFun;
    private javax.swing.JPanel pnlHeadFun;
    private javax.swing.JTextArea txbFuComment;
    private javax.swing.JTextField txtFuCode;
    private javax.swing.JTextField txtFuDepart;
    private javax.swing.JTextField txtFuName;
    // End of variables declaration//GEN-END:variables

}
